import request from '@/framework/utils/request';
import { AxiosPromise } from 'axios';
import { passWordRules } from './types';

export function getPwdRules(): AxiosPromise<passWordRules> {
  return request({
    url: '/pwdConfig/getPwdConfig',
    method: 'get'
  });
}
// 修改密码规则配置
export function updatePwdRules(data: passWordRules): AxiosPromise<any> {
  return request({
    url: '/pwdConfig/updatePwdConfig',
    method: 'post',
    data
  });
}
